-
Notifications
You must be signed in to change notification settings - Fork 121
Store creation M2: WPCOM plan screen (UI only) #8120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
You can test the changes from this Pull Request by:
|
selanthiraiyan
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚢
| // Plan features. | ||
| VStack(alignment: .leading, spacing: 16) { | ||
| ForEach(viewModel.features, id: \.title) { feature in | ||
| HStack(spacing: 12) { | ||
| Image(uiImage: feature.icon) | ||
| .renderingMode(.template) | ||
| .foregroundColor(Color(.wooCommercePurple(.shade90))) | ||
| Text(feature.title) | ||
| .foregroundColor(Color(.label)) | ||
| .bodyStyle() | ||
| } | ||
| } | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: What do you think about breaking the body down into smaller views? For example, this part can be a separate featuresListView View.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure 👍 updated in 2ddae25
Generated by 🚫 dangerJS |
Part of #8108
Description
This PR implemented the WPCOM eCommerce plan screen with a CTA to purchase the plan. The integration with IAP will be in a separate PR, since the testing steps are more complicated. There are two things that I'm clarifying with Ann in the design: HyVloP5FipZzyPVenH2euI-fi-2369%3A102723&t=Y9fAyMRWXAyQSWDn-0
In the SwiftUI view, there are too many one-off styles (spacing/color) so I only put some shared styles in the
Layoutenum. If you know of a better way to organize these elements, please feel free to suggest anything.Testing instructions
You can just check out the UI in SwiftUI preview in Xcode. To test this in the app, this screen requires a WPCOM plan product which would be easier to test once it's integrated with IAP.
Screenshots
RELEASE-NOTES.txtif necessary.